package com.clwl.supervise.superviseapp.mapper.supervise;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clwl.supervise.superviseapp.entity.supervise.JgFlightContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface JgFlightContentMapper extends BaseMapper<JgFlightContent> {

    List<JgFlightContent> selectByStandardId(@Param("standardId") Long standardId , @Param("riskCodeList") List<String> riskCode);

    List<Map<String, Object>> selectMapByCheckId(@Param("checkId") Long checkId);

    List<JgFlightContent> selectNoPassByCheckId(@Param("flightCheckId") Long flightCheckId);

    List<JgFlightContent> selectByCheckId(@Param("flightCheckId") Long checkId);

    int  batchUpdate(@Param("list") List<JgFlightContent> contentUpdateList);
}